package wsz.code.client.fallback;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import wsz.code.client.ServiceEmailClient;

/**
 * FeignClient的fallback配置类
 * @author wsz
 * @date 2021/12/27 11:38
 **/
@Slf4j
@Component
public class ServiceEmailClientFallBack implements ServiceEmailClient {
    @Override
    public boolean sendCode(String email, String code) {
        log.info("ServiceEmailClientFallBack.sendCode：发送验证码--{}-{}", email, code);
        return false;
    }
}
